<h1>Listing restaurants</h1>

<table>
  <tr>
  </tr>

<% for restaurant in @restaurants %>
  <tr>
	<td><%=h restaurant.name %></td>
    <td><%=h restaurant.telephone %></td>
    <td><%= link_to 'Show', restaurant %></td>
    <td><%= link_to 'Edit', edit_restaurant_path(restaurant) %></td>
    <td><%= link_to 'Destroy', restaurant, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New restaurant', new_restaurant_path %>
